<?php
class ModelTicketSetAssigner extends Model {
	public function addAssigner( $ids = array() ){
		$this->db->query( 'TRUNCATE ' . DB_PREFIX . 'ticket_assigner');
		
		foreach ( $ids as $id ){
			$this->db->query( 'INSERT INTO ' . DB_PREFIX . 'ticket_assigner SET user_group_id = ' . $id );
		}
	}
	
	public function getAssigners(){
		$query = $this->db->query( 'SELECT * FROM ' . DB_PREFIX . 'ticket_assigner' );
		
		return $query->rows;
	}
}
?>